﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="Admin_ThemSanPham.aspx.cs" Inherits="BloomsburyBanHang.Admin_ThemSanPham" %>
<asp:content ID="Content1" ContentPlaceHolderID="content" runat="server">
    <asp:label ID="Label1" runat="server" Font-Bold="True" 
        Font-Names="Times New Roman" Font-Overline="False" Font-Size="Larger" 
        ForeColor="#993300" Text="Thêm Sản Phẩm"></asp:label>
    <br />
    <table align="center" 
        style="width: 489px; border-style: solid; border-width: 1px">
        <tr>
            <td style="width: 155px">
                Tên <span style="font-family: 'Times New Roman', Times, serif">sản Phẩm</span></td>
            <td style="width: 243px">
                <asp:textbox ID="txt_Ten" runat="server" Width="223px"></asp:textbox>
            </td>
        </tr>
        <tr>
            <td style="width: 155px">
                Linh Vuc</td>
            <td style="width: 243px">
                <asp:dropdownlist ID="List_LinhVuc" runat="server" 
                    DataSourceID="SqlDataSourceTheLoai" DataTextField="TenTheLoai" 
                    DataValueField="MaTheLoai">
                </asp:dropdownlist>
            </td>
        </tr>
        <tr>
            <td style="width: 155px">
                Tac Gia</td>
            <td style="width: 243px">
                <asp:dropdownlist ID="List_TacGia" runat="server" DataSourceID="SqlDataSourceTacGia" 
                    DataTextField="TenTacGia" DataValueField="MaTacGia">
                </asp:dropdownlist>
            </td>
        </tr>
        <tr>
            <td style="width: 155px">
                Nhà Xuat Bản</td>
            <td style="width: 243px">
                <asp:dropdownlist ID="List_NXB" runat="server" DataSourceID="SqlDataSourceNXB" 
                    DataTextField="TenNhaXuatBan" DataValueField="MaNhaXuatBan">
                </asp:dropdownlist>
            </td>
        </tr>
        <tr>
            <td style="width: 155px">
                Gia Bia</td>
            <td style="width: 243px">
                <asp:textbox ID="txt_GiaBia" runat="server"></asp:textbox>
&nbsp;USD</td>
        </tr>
        <tr>
            <td style="width: 155px">
                Gia Goc</td>
            <td style="width: 243px">
                <asp:textbox ID="txt_GiaGoc" runat="server"></asp:textbox>
&nbsp;USD</td>
        </tr>
        <tr>
            <td style="width: 155px">
                So Luong</td>
            <td style="width: 243px">
                <asp:textbox ID="txt_SoLuong" runat="server"></asp:textbox>
            </td>
        </tr>
        <tr>
            <td style="width: 155px">
                Loai Tai Lieu</td>
            <td style="width: 243px">
                <asp:dropdownlist ID="List_Loai" runat="server" 
                    DataSourceID="SqlDataSourceLoaiTaiLieu" DataTextField="TenLoaiSanPham" 
                    DataValueField="MaKieuSanPham" Height="16px" Width="95px">
                </asp:dropdownlist>
            </td>
        </tr>
       
        <tr>
            <td style="width: 155px">
                Ngày phát Hành</td>
            <td style="width: 243px">
                <asp:calendar ID="Calendar1" runat="server"></asp:calendar>
            </td>
        </tr>
        <tr>
            <td style="width: 155px">
                Hình Ảnh</td>
            <td style="width: 243px">
                <asp:fileupload ID="FileUpload1" runat="server" />
            </td>
        </tr>
        <tr>
            <td style="width: 155px">
                Khuyến Mãi</td>
            <td style="width: 243px">
                <asp:dropdownlist ID="List_KhuyenMai" runat="server" 
                    DataSourceID="SqlDataSourceKhuyenMai" DataTextField="PhanTram" 
                    DataValueField="MaKhuyenMai" 
                    onselectedindexchanged="List_KhuyenMai_SelectedIndexChanged">
                </asp:dropdownlist>
&nbsp;%</td>
        </tr>
        <tr>
            <td align="center" colspan="2" valign="middle">
&nbsp;<asp:button ID="Button1" runat="server" Height="26px" onclick="Button1_Click" 
                    style="text-align: center" Text="Thêm" Width="103px" />
            </td>
        </tr>
        <tr>
            <td align="center" colspan="2" valign="middle">
                <asp:label ID="Label3" runat="server" Font-Bold="True" 
                    Font-Names="Times New Roman" Font-Size="Medium" ForeColor="Red" Text="Label"></asp:label>
            </td>
        </tr>
    </table>
    <br />
    <br />
    <asp:sqldatasource ID="SqlDataSourceTheLoai" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" 
        SelectCommand="SELECT * FROM [THE_LOAI]"></asp:sqldatasource>
    <asp:sqldatasource ID="SqlDataSourceLoaiTaiLieu" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" 
        SelectCommand="SELECT * FROM [KIEU_SAN_PHAM]"></asp:sqldatasource>
    <asp:sqldatasource ID="SqlDataSourceNXB" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" 
        SelectCommand="SELECT * FROM [NHA_XUAT_BAN]"></asp:sqldatasource>
    
    <asp:sqldatasource ID="SqlDataSourceKhuyenMai" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" 
        SelectCommand="SELECT * FROM [KHUYEN_MAI]"></asp:sqldatasource>
    <asp:sqldatasource ID="SqlDataSourceTacGia" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" 
        SelectCommand="SELECT * FROM [TAC_GIA]"></asp:sqldatasource>
</asp:content>
